package Com.amit.corejava;

public class Lab17 {
	int id;
	
	String name;
	
	public Lab17(int i,String n)
	{
		id=i;
		name=n;	
	}
	
	public Lab17()
	{
		
	}
	
	void display()
	{
		System.out.println(id+" "+name);
	}
	
	public static void main(String[] args) {
		
		Lab17 l1=new Lab17(12,"amit");
		Lab17 l2=new Lab17();
		
		l2.id=l1.id;
		l2.name=l1.name;
		
		l1.display();
		
		l2.display();
		
		
		

	}

}
